import Cocoa

var greeting = "Hello, playground"

if let range = greeting.range(of: "play") {
    print("range \(range.lowerBound)")
}
print("x")
greeting[greeting.startIndex..<greeting.index(greeting.startIndex, offsetBy: 1)]

var str1 : NSString = "hello, playground"
str1.range(of: "play") 
str1.range(of: "hello")
str1.range(of: "ello")
str1.range(of: "hello, playground")

